from scipy.stats import hmean

sample_list = [50,60,75,85,100,30,48]
x = hmean(sample_list)
print(x)

#方法2
rec_sample_list = [1/ i for i in sample_list]
rec_mean = sum(rec_sample_list) / len(rec_sample_list)
y = 1/rec_mean
print(y)